import request from '@/utils/request'

export function selectCycleGradeCount(params) {
  return request({
    url: '/evaluation/selectCycleGradeCount',
    method: 'POST',
    data: params
  })
}

export function selectSeekScoreRecord(params) {
  return request({
    url: '/scorecycle/selectSeekScoreRecord',
    method: 'POST',
    data: params
  })
}

export function selectAllScoreCycle(params) {
  return request({
    url: '/scorecycle/selectAllScoreCycle',
    method: 'POST',
    data: params
  })
}

export function setScoreCycle(params) {
  return request({
    url: '/scorecycle/setScoreCycle',
    method: 'POST',
    data: params
  })
}

export function selectPersonGradeCount(params) {
  return request({
    url: '/evaluation/selectPersonGradeCount',
    method: 'POST',
    data: params
  })
}

export function selectCycleGradeCountExportExcel(params) {
  console.log(params)
  params.token = window.sessionStorage.getItem('token')
  return request.get('/evaluation/selectCycleGradeCountExportExcel', {
    params,
    responseType: 'blob'
  })
}
export function getPart() {
  return request({
    url: '/evaluation/getPart',
    method: 'POST'
  })
}
